﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="stuReg.aspx.cs" Inherits="Maticsoft.Web.stu.stuReg" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
   <link rel="stylesheet" type="text/css" href="../Content/infomng-140422.css" />
    <script src="../js/jquery.js"></script>
    <script type="text/javascript">
        function checkid(val) {
            var uname = val.value;
            reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
            if (reg.test(uname))
                $.ajax({
                    type: "POST", url: "checkid.aspx", data: "id=" + uname, success: function (msg) {
                        if (msg != "0") {
                            $("#mymsg").html("该用户名已注册，请修改！");
                            $("#mymsg").css("color", "Red");
                            $(val).val("");
                        } else {
                            $("#mymsg").html("该用户名可以使用！");
                            $("#mymsg").css("color", "Green");
                        }
                    }, error: function (XMLResponse) { alert(XMLResponse.responseText) }
                });
        }
    </script>
    <style type="text/css">
        .auto-style1
        {
            width: 367px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
     <div class="cBody">
        <div class="cHead">
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
                width="1002" height="194">
                <param name="movie" value="../Flash/flash.swf" />
                <param name="quality" value="high" />
                <embed src="../Flash/flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
                    type="application/x-shockwave-flash" width="1002" height="194"></embed>
            </object>
           <%--  <img alt="" src="../images/topImg.jpg" />--%>
        </div>
        <div class="cNavigator">
            当前位置：<a href="../index.aspx">首页</a>  - <a href='stuReg.aspx'>注册</a>
        </div>
        <div class="cMainLevel2">
          
            
           <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
            <tr>
                <td class="tdbg">
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tr>
                            <td height="25" width="30%" align="right">
                                
                            </td>
                            <td height="25" width="*" align="left" colspan="2">
                              
                            </td>
                        </tr>
                        <tr>
                            <td height="25" width="30%" align="right">
                                姓名 ：
                            </td>
                            <td height="25" width="*" align="left" colspan="2">
                                <asp:TextBox ID="txtstuName" runat="server" Width="105px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtstuName"
                                    ErrorMessage="RequiredFieldValidator">不能为空</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtstuName"
                                    ErrorMessage="RegularExpressionValidator" ValidationExpression="[\u4e00-\u9fa5]{2,}">格式不对至少两个汉字</asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td height="25" width="30%" align="right">
                                性别 ：
                            </td>
                            <td height="25" width="*" align="left" colspan="2">
                                <asp:RadioButton ID="rdbman" runat="server" Checked="True" Text="男" GroupName="rdo" />
                                <asp:RadioButton ID="rdbwoman" runat="server" Text="女" GroupName="rdo"/>
                            </td>
                        </tr>
                        <tr>
                            <td height="25" width="30%" align="right">
                                单位名称 ：
                            </td>
                            <td height="25" width="*" align="left" colspan="2">
                                <asp:TextBox ID="txtstuAddress" runat="server" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtstuAddress"
                                    ErrorMessage="RequiredFieldValidator">不能为空</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td height="25" width="30%" align="right">
                                身份证号 ：
                            </td>
                            <td height="25" align="left" class="auto-style1">
                                <asp:TextBox ID="txtstuNum" runat="server" Width="200px" onblur="javascript:checkid(this);"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtstuNum"
                                    ErrorMessage="RequiredFieldValidator">不能为空</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtstuNum"
                                    ErrorMessage="RegularExpressionValidator" ValidationExpression="(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)">格式不对</asp:RegularExpressionValidator>
                            </td>
                            <td height="25" width="*" align="left">
                                <span id="mymsg" style="display: block; color: #ff6600;"></span>
                            </td>
                        </tr>
                        <tr>
                            <td height="25" width="30%" align="right">
                                职务 ：
                            </td>
                            <td height="25" width="*" align="left" colspan="2">
                                <asp:TextBox ID="txtstuPost" runat="server" Width="200px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td height="25" width="30%" align="right">
                                手机 ：
                            </td>
                            <td height="25" width="*" align="left" colspan="2">
                                <asp:TextBox ID="txtstuPhone" runat="server" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtstuPhone"
                                    ErrorMessage="RequiredFieldValidator">不能为空</asp:RequiredFieldValidator>
                                <asp:DropDownList ID="ddltype" runat="server" Visible="False">
                                    <asp:ListItem>党政机关</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td height="25" width="30%" align="right">
                                照片 ：
                            </td>
                            <td height="25" width="*" align="left" colspan="2">
                                <asp:FileUpload ID="fuIndFile" runat="server" />
                                支持jpg、gif、png格式图片</td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="tdbg" align="center" valign="bottom">
                    <asp:Button ID="btnSave" runat="server" Text="注册" OnClick="btnSave_Click" class="inputbutton"
                        onmouseover="this.className='inputbutton_hover'" 
                        onmouseout="this.className='inputbutton'" Width="88px">
                    </asp:Button>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnCancle" runat="server" Text="取消" OnClick="btnCancle_Click" class="inputbutton"
                        onmouseover="this.className='inputbutton_hover'" 
                        onmouseout="this.className='inputbutton'" Width="88px">
                    </asp:Button>
                </td>
            </tr>
        </table>
            
        </div>
        <script type="../text/javascript">            bind4List();</script>
        <div class="cCopyright">
            <%-- <div class="pContent">
        主办：中共山东省纪律检查委员会 山东省监察厅 &nbsp;&nbsp;&nbsp;&nbsp;
        技术支持：<a href="http://www.qzsoft.cn" target="_blank" class="pQzLogo"></a>
    </div>--%>
        </div>
    </div>
    
    </form>
</body>
</html>
